import Home from '../views/Home.vue'
const Register = () => import('@/views/register')
const Login = () => import('@/views/Login')
const Userinfo = () => import('@/views/Userinfo')
const Edit = () => import('@/views/Edit')

const routes = [
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/register',
    component: Register
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/userinfo',
    component: Userinfo,
    meta: {
      istoken: true
    }
  },
  {
    path: '/edit',
    component: Edit,
    meta: {
      istoken: true
    }
  }
]

export default routes
